package com.smedi.ismedi.authoritymanagement.core.domain.repository;

import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.Role;
import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.RoleAssignment;
import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.RoleBasic;
import com.smedi.ismedi.authoritymanagement.core.domain.dto.RoleAssignmentQuery;
import com.smedi.ismedi.authoritymanagement.core.domain.dto.RoleQuery;

import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-7-13 19:42
 */
public interface RoleBasicRepository {
    RoleBasic selectByRoleId(Long roleId);

    List<RoleBasic> selectByRoleIds(List<Long> roleIds);

    int selectRoleNameCount(String roleName, Long roleId);

    RoleBasic doInsert(RoleBasic data);

    RoleBasic doUpdate(RoleBasic data);

    void doDeleteByRoleId(Long roleId);

    List<RoleBasic> selectByRoleName(String roleName, boolean fuzzy);

    List<Role> getRoleList(RoleQuery roleQuery);

    List<Role> getRoleListWithoutToken(RoleQuery roleQuery);
}
